﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MockPrjTeam2.DAO;
using MockPrjTeam2.Entity;

namespace MockPrjTeam2.Biz
{
    public class SDManager
    {
        public bool IsValidLogin(string userName, string password)
        {
            if (string.IsNullOrEmpty(userName)) return false;
            var userDAO = new UserDao();
            User result = userDAO.GetUser(userName, password);
            return result != null;
        }

        public string LogOutAccount(string sessionAccount)
        {
            if (sessionAccount != null)
            {
                return null;
            }
            return null;
        }
    }
}